package com.yisu.auction.api.core.service;

import com.yisu.auction.api.domain.request.activityPackage.SecKillActivityRequest;
import com.yisu.auction.api.domain.vo.activityPackageVos.SecKillVo;
import com.yisu.auction.ewf.common.web.JsonResult;

import java.util.List;

/**
 * author: 赵杰
 * Business Description：秒杀业务接口
 * createTime：2017/8/24
 */
public interface ISecKillActivityService {


    /**
     * author: 赵杰
     * Business Description：获取当日的秒杀商品列表
     * @return
     */
    List<SecKillVo> getCurrentDaySecKillList();



    /**
     * author: 赵杰
     * Business Description：购买秒杀资格
     * @param secKillActivityRequest
     * @return
     */
    JsonResult buyQualification(SecKillActivityRequest secKillActivityRequest) throws Exception;


    /**
     * author: 赵杰
     * Business Description：秒杀
     * @param secKillActivityRequest
     * @return
     */
    JsonResult secKillAction(SecKillActivityRequest secKillActivityRequest) throws InterruptedException;
}
